<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
    /*
     *对于成绩大于60分的，输出合格
     *低于60分的，输出不合格
     */
    var score = +prompt("输入你的成绩：");
    switch(true)
    {
        case score >=60:
            document.write("合格");
            break;
        default:
            document.write("不合格");
            break;
    }
    /*var num2= +prompt("输入一个数字(1~7)：");
    switch(num2)
    {
        case 1:
            document.write("星期一");
            break;
        case 2:
            document.write("星期二");
            break;
        case 3:
            document.write("星期三级");
            break;
        case 4:
            document.write("星期四");
            break;
        case 5:
            document.write("星期五");
            break;
        case 6:
            document.write("星期六");
            break;
        case 7:
            document.write("星期日");
            break;
    }*/
    </script>
</head>
<body>
    
</body>
</html>